#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

@class Word; 

@interface MainWindowController: NSObject/* Specify a superclass (eg: NSObject or NSView) */ {
    IBOutlet UISearchBar *searchBar;
    IBOutlet UIWebView *webView;
	NSString *result;
	Word *word;
	NSString *prevElementName;
}

@property (nonatomic, retain) Word *word;

- (IBAction)LookUP:(id)sender;
- (void)searchTableView;
- (void)parseResponse:(NSString *)response;
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict;
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName; 
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName;
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string;
- (void)parser:(NSXMLParser *)parser parseErrorOccurred:(NSError *)parseError;


@end
